<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8" isELIgnored="false"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%> 
<div class="r_location">
	<i class="r_txtico"></i> 微信配置管理 &gt; 微信菜单配置
</div>
<form id="add_func_form"  method="post"  action="cms/wechatmenu/old/createWeChatMenu">
	<ul class="all_list">
		<li>
			<span class="all_title">生菜单的json：</span>
			<span>
				<textarea rows="3" cols="80" name="jsonMenu" validator='{"label":"生菜单的json"}' id="targetUser"></textarea>
			</span>
		</li>
		<li>
			<span class="all_title"></span>
			<span> 
				<input type="button" id="save_button" value="提 交" class="submit_btn m-r15 submitBtn">
			</span>
		</li>
	</ul>
</form>
<script type="text/javascript">
	$(function(){
		      
		function showDialog(url, options) {
			myDialog = art.dialog(options);// 初始化一个带有loading图标的空对话框
			$.post(url, options.param, function(data) {
				myDialog.content(data);
			});
		}
		$("#add_func_form").validator({},{
			callback:function(result){
				$("#add_func_form").ajaxSubmit(function(data){
					if (data.success == 'succeed') {
						art.dialog({icon: 'success',content: data.message,lock:true});
					} else {
						art.dialog({icon: 'error',content: data.message,lock:true});
					}
				});
			}
		});
	});
</script>